/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/banner_info',
  name: '系统设置',
  meta: {title: '系统设置', icon: 'example', role: 'ADMIN'},
  children: [
    {
      path: '/system/banner_info',
      name: '首页横幅',
      component: () => import('@/views/system/banner_info.vue'),
      meta: {title: '首页横幅', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/system/system_param',
      name: '系统配置',
      component: () => import('@/views/system/system_param.vue'),
      meta: {title: '系统配置', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/system/occupation_info',
      name: '职业信息',
      component: () => import('@/views/system/occupation_info.vue'),
      meta: {title: '职业信息', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/system/vip_price',
      name: '权益价格',
      component: () => import('@/views/system/vip_price.vue'),
      meta: {title: '权益价格', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/system/vip_redeem_code',
      name: '权益兑换码',
      component: () => import('@/views/system/vip_redeem_code.vue'),
      meta: {title: '权益兑换码', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/system/medal_info',
      name: '勋章',
      component: () => import('@/views/system/medal_info.vue'),
      meta: {title: '勋章', icon: 'tree', role: 'ADMIN'},
    },
    {
      path: '/system/cache',
      name: '缓存',
      component: () => import('@/views/system/cache.vue'),
      meta: {title: '缓存', icon: 'tree', role: 'ADMIN'},
    }
  ]
}

export default systemRouter

